package rawengine.graphics.animation;

import rawengine.graphics.Texture;

public class AnimFrame extends Frame{
	
	private long endTime;
		
	public AnimFrame(Texture image, int index, int characterWidth, int characterHeight) 
    {
       super(image, index, characterWidth, characterHeight);
      
        
    }
    
    public AnimFrame(Texture image, int characterWidth, int characterHeight) 
    {
    	super(image, characterWidth, characterHeight);
        this.setIndex(0);
        
    }

	/**
	 * @param endTime the endTime to set
	 */
	public void setEndTime(long endTime) {
		this.endTime = endTime;
	}

	/**
	 * @return the endTime
	 */
	public long getEndTime() {
		return endTime;
	}
	
	
	/**
    Clones this AnimFrame. Does not clone position or velocity
    info.
	*/
	public Object clone() {
	    return new AnimFrame(image, index, width, height);
	}

}
